package factory.factory_method;

public class Test {
    public static void main(String[] args) {
        Factory factoryA = new FactoryA();
        Product productA = factoryA.create();

        Factory factoryB = new FactoryB();
        Product productB = factoryB.create();

        productA.use();
        productB.use();
    }
}
